This event occurs when the user has entered a new role assignment.
Syntax
Private Sub AMUIExtension_BeforeAddUserRole(
ByVal CurrentObject As Object,
ByVal UserOrUsergroup As String,
ByVal UserRole As AmOm.IAMUserRole,
Abort As Boolean)
Name | Description |
---|---|
CurrentObject |
The enclosure for which assignments are changed (AMFolder object or AMWorkPackage object). |
UserOrUsergroup |
The user or group to which a role is assigned. |
UserRole |
The UserRole that is assigned. |
Abort |
Setting this argument to True will abort the operation. The AfterAddUserRole event will not occur. |
Remarks
The new assignment will actually be applied after the CloseAssignRoles event.